﻿#region

using System.Collections.Generic;
using System.Diagnostics;
using System.Text;

#endregion

namespace Domain {
    [DebuggerDisplay("{VerticesString}")]
    public class HyperEdge : IEdge {
        public List<Vertex> Vertices { get; set; }

        private string VerticesString {
            get {
                var x = new StringBuilder();
                Vertices.ForEach(v => x.Append(v.Name).Append(' '));
                return x.ToString();
            }
        }

        public HyperEdge() {}

        public HyperEdge(params Vertex[] vertices) {
            Vertices = new List<Vertex>();
            Vertices.AddRange(vertices);
        }
    }
}